import java.io.*;
import java.util.*;

public class Main{
    public static void main(String[]args){
        Scanner cin = new Scanner(System.in);
        int k = cin.nextInt();
        int n = 0;
        double sum = 0.0;
        while(sum<=k){
            ++n;
            sum += 1.0/n;
        }
        System.out.println(n);
        cin.close();
    }
}